//
//  LSMsgModel.h
//  LiveStar
//
//  Created by 漪珊 on 2016/12/22.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "QZHModel.h"

#define MSG_TABLEVIEW_WIDTH        200
#define MSG_TABLEVIEW_HEIGHT       150
#define MSG_TABLEVIEW_BOTTOM_SPACE 10
#define MSG_TABLEVIEW_LABEL_FONT   14
#define MSG_BULLETVIEW_HEIGHT      34
#define MSG_UI_SPACE               10

//发送框
#define MSG_TEXT_SEND_VIEW_HEIGHT          45
#define MSG_TEXT_SEND_FEILD_HEIGHT         30
#define MSG_TEXT_SEND_BTN_WIDTH            35
#define MSG_TEXT_SEND_BULLET_BTN_WIDTH     55

typedef NS_ENUM(NSInteger, TCMsgModelType)
{
    TCMsgModelType_NormalMsg           = 0,   //普通消息
    TCMsgModelType_MemberEnterRoom     = 1,   //进入房间消息
    TCMsgModelType_MemberQuitRoom      = 2,   //退出房间消息
    TCMsgModelType_DanmaMsg            = 3,   //弹幕消息
    TCMsgModelType_Praise              = 4,   //点赞消息
    TCMsgModelType_Present             = 5,   //礼物消息
    TCMsgModelType_RedPaper            = 6,   //红包消息
};
/**
 *  消息model，这个model会在弹幕，消息列表，观众列表用到
 */

@interface LSMsgModel : QZHModel
@property(nonatomic,assign)TCMsgModelType msgType;    //消息类型
@property(nonatomic,copy)NSString *userId;            //用户Id
@property(nonatomic,copy)NSString *userName;          //用户名字
@property(nonatomic,copy)NSString *userMsg;           //用户发的消息
@property(nonatomic,copy)NSString *userHeadImageUrl;  //用户头像url
@property(nonatomic,assign)NSInteger msgHeight;       //消息高度
@property (nonatomic, copy) NSString *userLevel;      //用户等级
@property(nonatomic, copy)NSAttributedString *msgAttribText;
@end
